import request from '@/utils/request'

//列表
export function channel_slot_list(params) {
    return request({
        url: '/v1/channel_slot/list',
        method: 'get',
        params
    })
}
//详情
export function channel_slot_info() {
    return request({
        url: '/v1/channel_slot/info',
        method: 'get'
    })
}
//添加
export function channel_slot_add(data) {
    return request({
        url: '/v1/channel_slot/add',
        method: 'post',
        data
    })
}
//修改
export function channel_slot_edit(data) {
    return request({
        url: '/v1/channel_slot/edit',
        method: 'post',
        data
    })
}
export function channel_slot_edit_rate(data) {
    return request({
        url: '/v1/channel_slot/edit_rate',
        method: 'post',
        data
    })
}
//状态变更
export function channel_slot_upflag(params) {
    return request({
        url: '/v1/channel_slot/flag',
        method: 'get',
        params
    })
}
//删除
export function channel_slot_stats(params) {
    return request({
        url: '/v1/channel_slot/stats',
        method: 'get',
        params
    })
}

//所有
export function channel_slot_all(params) {
    return request({
        url: '/v1/channel_slot/all',
        method: 'get',
        params
    })
}